package billeterie;

public class ShowsFactory 
{
	public static Show getShow(String className, int showId, String showName, String showDescription, double showPrice, int showTicketsCount)
	{
		Show newShow = null;

		if(className.equals("ShowA"))
		{
			newShow = new ShowA(showId, showName, showDescription, showPrice, showTicketsCount);
		}
		else if(className.equals("ShowB"))
		{
			newShow = new ShowB(showId, showName, showDescription, showPrice, showTicketsCount);
		}
		else if(className.equals("ShowC"))
		{
			newShow = new ShowC(showId, showName, showDescription, showPrice, showTicketsCount);
		}

		return newShow;
	}
}
